package com.sailfish.springbootdemo.service.db2;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db2.PcbParentFactoryInfo;
import com.sailfish.springbootdemo.pojo.db2.PcbSonFactoryInfo;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface PcbParentFactoryInfoService {

    List<PcbParentFactoryInfo> getAll(String companyName, String companyNameFull, String companyCode, String companyNameEn, String companyWebsite, String sonFactoryName,
                                      String factoryNameEn, String factoryIntroduction, String factoryIntroductionEn,
                                      String factoryContacts, String factoryCategory, String factoryCategoryEn, Integer status, String remarkPic);

    List<PcbParentFactoryInfo> getAll();

    List<PcbParentFactoryInfo> getBySonList(List<Integer> sonIds, Integer flag);

    Result insert(PcbParentFactoryInfo param);

    Result delete(Integer id);

    Result update(PcbParentFactoryInfo param);

    PcbParentFactoryInfo getById(Integer id);

    boolean checkHasSonFactory(Integer factoryId);

    public Result output();
//    Result addOrUpdate(PcbSonFactoryInfo param,String mode, String authorizationHeader);
}
